package com.mud.mudcommune.view.widget;

import android.content.Context;
import android.view.View;
import android.widget.PopupWindow;

/**
 * Created by zhoujin on 2016/12/14.
 */

public class MPopWindow {
    private Context mContext;
    private int mWidth;
    private int mHeight;
    private boolean isFocusable = true;
    private boolean isOutside = true;
    private int resLayoutId = -1;
    private PopupWindow mPopupWindow;
    private int mAnimationStyle = -1;

    private boolean mTouchable = true;
    private PopupWindow.OnDismissListener mOnDismissListener;
    private View.OnTouchListener mOnTouchListener;

    private MPopWindow(Context context) {
        mContext = context;
    }

    public int getWidth() {
        return mWidth;
    }

    public int getHeight() {
        return mHeight;
    }

    public MPopWindow showAsDropDown(View anchor, int xOff, int yOff) {
        if (mPopupWindow != null) {
            mPopupWindow.showAsDropDown(anchor, xOff, yOff);
        }
        return this;
    }



}
